﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.Province
{
    public class ProvincesPresenter : Presenter<IProvincesView>
    {
        public ProvincesPresenter(IProvincesView view)
            : base(view)
        {
        }

        public void Display()
        {
            View.Provinces = Model.GetProvinces();
        }

        public void DisplayByPage(int currentPage)
        {
            View.Provinces = Model.GetProvincesByPage(currentPage);
        }

        public int GetTotalPage()
        {
            return Model.GetTotalPageFromDistrict();
        }

        public void DisplayActive()
        {
            View.Provinces = Model.GetProvincesActive();
        }
    }
}
